export const eth12History = {
    "records": [
        {
            "id": 564202,
            "userId": 3,
            "userName": "17749454225",
            "token": "ETH/USDT",
            "title": "ETH-12小时周期做多，提醒价格2431.6，目标范围2511.9-2531.4，止损位2346.4，有效期4天5小时",
            "isSale": false,
            "price": 2434.020000,
            "gainPrice": 2511.908640,
            "lossPrice": 2346.395280,
            "gainPrice2": 2531.380800,
            "openPrice": 2431.585980,
            "openPrice2": 2353.697340,
            "period": 9,
            "status": "push",
            "createTime": "2024-02-08 12:00:25",
            "updateTime": "2024-02-08 12:00:25",
            "errorInfo": null,
            nowLow: 2411.92,
            nowHigh: 2532
        },
        {
            "id": 277255,
            "userId": 3,
            "userName": "17749454225",
            "token": "ETH/USDT",
            "title": "ETH-12小时低点做多，开仓范围1653.1-1601.0，目标范围1708.6-1721.8，止损位1596.0，有效期4天5小时",
            "isSale": false,
            "price": 1655.590000,
            "gainPrice": 1708.568880,
            "lossPrice": 1595.988760,
            "gainPrice2": 1721.813600,
            "openPrice": 1653.106615,
            "openPrice2": 1600.955530,
            "period": 9,
            "status": "push",
            "createTime": "2023-09-29 00:01:19",
            "updateTime": "2023-09-29 00:01:19",
            "errorInfo": null,
            nowLow: 1641.89,
            nowHigh: 1722
        },
        {
            "id": 55968,
            "userId": 3,
            "userName": "17749454225",
            "token": "ETH/USDT",
            "title": "ETH-12小时低点做多，开仓范围1807.7-1750.6，目标范围1868.3-2534.5，止损位1745.2，有效期4天5小时",
            "isSale": false,
            "price": 1810.390000,
            "gainPrice": 1868.322480,
            "lossPrice": 1745.215960,
            "gainPrice2": 2010.546000,
            "openPrice": 1807.674415,
            "openPrice2": 1750.647130,
            "period": 9,
            "status": "push",
            "createTime": "2023-06-21 12:00:41",
            "updateTime": "2023-06-21 12:00:41",
            "errorInfo": null,
            nowLow: 1780,
            nowHigh: 2011
        }
    ],
    "total": 3,
    "size": 30,
    "current": 1,
    "orders": [
        {
            "column": "create_time",
            "asc": false
        }
    ],
    "optimizeCountSql": true,
    "searchCount": true,
    "countId": null,
    "maxLimit": null,
    "pages": 1
}

export const eth24History = {
    "records": [
        {
            "id": 568003,
            "userId": 3,
            "userName": "17749454225",
            "token": "ETH/USDT",
            "title": "ETH-日内周期做多，提醒价格2556.3，目标范围2686.8-2814.7，止损位2418.1，有效期19天7小时",
            "isSale": false,
            "price": 2558.860000,
            "gainPrice": 2686.803000,
            "lossPrice": 2418.122700,
            "gainPrice2": 2814.746000,
            "openPrice": 2556.301140,
            "openPrice2": 2430.917000,
            "period": 6,
            "status": "push",
            "createTime": "2024-02-13 00:00:28",
            "updateTime": "2024-02-13 00:00:28",
            "errorInfo": null,
            nowLow: 2537.07, // 实际最低
            nowHigh: 2815,    // 实际最高
        },
        {
            "id": 549917,
            "userId": 3,
            "userName": "17749454225",
            "token": "ETH/USDT",
            "title": "ETH-日内周期做空，提醒价格2222.8，目标范围2109.6-1998.5，止损位2342.7，有效期19天7小时",
            "isSale": true,
            "price": 2220.600000,
            "gainPrice": 2109.570000,
            "lossPrice": 2342.733000,
            "gainPrice2": 1998.540000,
            "openPrice": 2222.820600,
            "openPrice2": 2331.630000,
            "period": 6,
            "status": "push",
            "createTime": "2024-01-24 00:00:28",
            "updateTime": "2024-01-24 00:00:28",
            "errorInfo": null,
            nowLow: 2343, // 实际最高
            nowHigh: 2167,    // 实际最低
            tip: '-最低2167，可以盈利53-98点，未达到止盈价，如果开仓后自行止盈也能盈利，格局的话可能会止损'
        },
        {
            "id": 24097,
            "userId": 3,
            "userName": "17749454225",
            "token": "ETH/USDT",
            "title": "日内高点,做空目标价【1748.26】,防守价【1923.08】, 有效期【19天7小时】",
            "isSale": true,
            "price": 1840.270000,
            "gainPrice": 1688,
            "lossPrice": 1923.082150,
            "gainPrice2": 1648,
            "openPrice": 0.000000,
            "openPrice2": 0.000000,
            "period": 6,
            "status": "push",
            "createTime": "2023-06-10 00:01:08",
            "updateTime": "2023-06-10 00:01:08",
            "errorInfo": null,
            nowLow: 1845, // 实际最高
            nowHigh: 1623,    // 实际最低
        },
    ],
    "total": 4,
    "size": 30,
    "current": 1,
    "orders": [
        {
            "column": "create_time",
            "asc": false
        }
    ],
    "optimizeCountSql": true,
    "searchCount": true,
    "countId": null,
    "maxLimit": null,
    "pages": 1
}

export const btc12History = {
    "records": [
        {
            "id": 538104,
            "userId": 357,
            "userName": "18232056821",
            "token": "BTC/USDT",
            "title": "BTC-12小时周期做空，提醒价格42611.0，目标范围41247.4-40906.6，止损位44145.0，有效期4天5小时",
            "isSale": true,
            "price": 42611.000000,
            "gainPrice": 41247.448000,
            "lossPrice": 44144.996000,
            "gainPrice2": 40906.560000,
            "openPrice": 42611.001500,
            "openPrice2": 42611.033000,
            "period": 9,
            "status": "push",
            "createTime": "2024-01-14 00:00:08",
            "updateTime": "2024-01-14 00:00:08",
            "errorInfo": null,
            nowLow: 43604,
            nowHigh: 40906,
        },
        {
            "id": 497663,
            "userId": 357,
            "userName": "18232056821",
            "token": "BTC/USDT",
            "title": "BTC-12小时高点做空，提醒价格42329.5，目标范围40913.6-40575.5，止损位43787.7，有效期4天5小时",
            "isSale": true,
            "price": 42266.100000,
            "gainPrice": 40913.584800,
            "lossPrice": 43787.679600,
            "gainPrice2": 40575.456000,
            "openPrice": 42329.499150,
            "openPrice2": 43660.881300,
            "period": 9,
            "status": "push",
            "createTime": "2023-12-30 00:00:24",
            "updateTime": "2023-12-30 00:00:24",
            "errorInfo": null
        },
        {
            "id": 277229,
            "userId": 357,
            "userName": "18232056821",
            "token": "BTC/USDT",
            "title": "BTC-12小时低点做多，开仓范围26996.9-26145.3，目标范围27902.7-28119.0，止损位26064.2，有效期4天5小时",
            "isSale": false,
            "price": 27037.500000,
            "gainPrice": 27902.700000,
            "lossPrice": 26064.150000,
            "gainPrice2": 28119.000000,
            "openPrice": 26996.943750,
            "openPrice2": 26145.262500,
            "period": 9,
            "status": "push",
            "createTime": "2023-09-29 00:00:28",
            "updateTime": "2023-09-29 00:00:28",
            "errorInfo": null,
            nowLow: 26650,
            nowHigh: 28119.1,
        },
        // {
        //     "id": 267677,
        //     "userId": 357,
        //     "userName": "18232056821",
        //     "token": "BTC/USDT",
        //     "title": "BTC-12小时高点做空，开仓范围26195.8-27019.8，目标范围25319.6-25110.3，止损位27098.2，有效期4天5小时",
        //     "isSale": true,
        //     "price": 26156.600000,
        //     "gainPrice": 25319.588800,
        //     "lossPrice": 27098.237600,
        //     "gainPrice2": 25110.336000,
        //     "openPrice": 26195.834900,
        //     "openPrice2": 27019.767800,
        //     "period": 9,
        //     "status": "push",
        //     "createTime": "2023-09-25 12:00:28",
        //     "updateTime": "2023-09-25 12:00:28",
        //     "errorInfo": null,
        //     nowLow: 26741,
        //     nowHigh: ,
        // }
    ],
    "total": 4,
    "size": 30,
    "current": 1,
    "orders": [
        {
            "column": "create_time",
            "asc": false
        }
    ],
    "optimizeCountSql": true,
    "searchCount": true,
    "countId": null,
    "maxLimit": null,
    "pages": 1
}
export const btc24History = {
    "records": [
        {
            "id": 564570,
            "userId": 357,
            "userName": "18232056821",
            "token": "BTC/USDT",
            "title": "BTC-日内周期做多，提醒价格45404.6，目标范围47722.5-49995.0，止损位42950.2，有效期19天7小时",

            "isSale": false,
            "price": 45450.000000, // 提醒价格
            "gainPrice": 47722.500000, // 止盈1
            "lossPrice": 42950.250000, // 止损
            "gainPrice2": 49995.000000, // 止盈2
            "openPrice": 45404.550000,  // 区间
            "openPrice2": 43177.500000, // 区间最低
            "period": 6,
            "status": "push",
            "createTime": "2024-02-09 00:00:37",
            "updateTime": "2024-02-09 00:00:37",
            "errorInfo": null,
            "nowLow": 44908,
            "nowHigh": 49996,

        },
        {
            "id": 545527,
            "userId": 357,
            "userName": "18232056821",
            "token": "BTC/USDT",
            "title": "BTC-日内周期做空，提醒价格40939.4，目标范围38853.6-36808.6，止损位43147.9，有效期19天7小时",
            "isSale": true,
            "price": 40898.500000,  // 提醒价格
            "gainPrice": 38853.575000, // 止盈
            "lossPrice": 43147.917500, // 止损
            "gainPrice2": 36808.650000,
            "openPrice": 40939.398500,
            "openPrice2": 42943.425000,
            "period": 6,
            "status": "push",
            "createTime": "2024-01-20 00:00:35",
            "updateTime": "2024-01-20 00:00:35",
            "errorInfo": null,
            nowLow: 42195, // 实际最高
            nowHigh: 38550,    // 实际最低
        }
    ],
    "total": 2,
    "size": 30,
    "current": 1,
    "orders": [
        {
            "column": "create_time",
            "asc": false
        }
    ],
    "optimizeCountSql": true,
    "searchCount": true,
    "countId": null,
    "maxLimit": null,
    "pages": 1
}

// token: 'BTC/USDT',
// period: 9, 9: 12h 6: 日线
// strategyId: ''
export const getRes = (data) => {
    if (data.token === 'BTC/USDT') {
        return data.period === 9 ? btc12History : btc24History;
    }
    if (data.token === 'ETH/USDT') {
        return data.period === 9 ? eth12History : eth24History;
    }
    return {
        records: []
    };
}